#!/bin/sh

#This script for firmware r6908 ONLY!!! 
case "$1" in
  start)
        # Power ON, for ....
 
        # STANDBY_CMD_SYSTEM_ON
        echo -en '\xf0\xfe' >/dev/tts/1
        # STANDBY_CMD_MUTE_OFF
        echo -en '\xf9\xfe' >/dev/tts/1
        ;;
  stop)
        # Call S10moServices
        /usr/local/etc/rc.init/S10moServices stop
        # Call S01Power from /usr/local/bin/
        /usr/local/bin/S01Power stop
        sync
        # STANDBY_CMD_SYSTEM_OFF
        # Disabled by Slider26 - http://forum.ixbt.com/topic.cgi?id=60:2754-56#1636
        # echo -en '\xf5\xfe' >/dev/tts/1
        ;;
  *)
        echo $"Usage: $0 {start|stop}"
        ;;
esac
 
exit $?